<?php
// +----------------------------------------------------------------------
// | Author: 发仔 <i@fazi.me> 
// +----------------------------------------------------------------------

namespace app\unit\controller;

use think\Db;
use think\Cache;

class Limit extends Base
{
    
	protected $id = 'limit_id';
	protected $table = 'unit_limit';
    
    
    protected function parseData($data) {
		
		$data['limit_rule'] = json_encode($data['limit_rule']);
		$data['company_id'] = $this->company_id;
		
		return $data;
		
	}
}
